//
//  GYSortSelectView.m
//  GoodLuck
//
//  Created by 郭为勇 on 2018/3/13.
//  Copyright © 2018年 yunjiazhineng. All rights reserved.
//

#import "GYSortSelectView.h"

@interface GYSortSelectView ()

@property (weak, nonatomic) IBOutlet UIButton *multBtu;
@property (weak, nonatomic) IBOutlet UIButton *saleumBtu;

@end
@implementation GYSortSelectView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (IBAction)onClick:(UIButton *)sender {
    switch (sender.tag) {
        case 1:
        {
            [self.multBtu setTitleColor:RGBColor(15, 206, 194) forState:UIControlStateNormal];
            [self.saleumBtu setTitleColor:RGBColor(137, 137, 137) forState:UIControlStateNormal];
        }
            break;
            
        case 2:
        {
            [self.saleumBtu setTitleColor:RGBColor(15, 206, 194) forState:UIControlStateNormal];
            [self.multBtu setTitleColor:RGBColor(137, 137, 137) forState:UIControlStateNormal];
            
        }
            break;
            
        case 3:
        {
            sender.selected = !sender.selected;
        }
            break;
            
        default:
            break;
    }
    self.selectorModeCallBack(sender.tag, self.multBtu,sender.selected);

}

@end
